<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../static/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="../static/css/sb-admin-2.css">
<link href="../static/prettify/github-v2.min.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
      <script src="../static/js/html5shiv.min.js"></script>
      <script src="../static/js/respond.min.js"></script>
    <![endif]-->
<style>
body {
	word-wrap: break-word;
}
</style>
</head>
<body onload="prettyPrint();">
	<div id="nav"></div>

	<div id="page-wrapper" style="padding: 10px">
		<div class="container-fluid">
			<div class="row">
				<div class="col-md-12">
					<h3 id="accpet-datetime">可接受的日期格式</h3>
					<ul>
						<li>yyyy-MM-dd</li>
						<li>yyyy/MM/dd</li>
						<li>yyyy-MM-dd HH:mm:ss</li>
						<li>yyyy-MM-dd HH:mm</li>
						<li>yyyy-MM-dd HH</li>
						<li>yyyy/MM/dd HH:mm:ss</li>
						<li>yyyy/MM/dd HH:mm</li>
						<li>yyyy/MM/dd HH</li>
					</ul>

					<h3 id="pageresult-pros">PageResult&lt;T&gt;默认属性</h3>
					<div class="table-responsive">
						<table class="table">
							<thead>
								<tr>
									<td>属性名</td>
									<td>类型</td>
									<th>是否可能为null</th>
									<td>说明</td>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>datas</td>
									<td>List&lt;T&gt;</td>
									<td>否</td>
									<td>有查询结果而定，例如PageResult&lt;Tag&gt;，那么类型就是List&lt;Tag&gt;,如果没有结果，则为空集合</td>
								</tr>
								<tr>
									<td>totalPage</td>
									<td>int</td>
									<td>否</td>
									<td>总页码</td>
								</tr>
								<tr>
									<td>currentPage</td>
									<td>int</td>
									<td>否</td>
									<td>当前页码</td>
								</tr>
								<tr>
									<td>pageSize</td>
									<td>int</td>
									<td>否</td>
									<td>每页记录数</td>
								</tr>
								<tr>
									<td>totalRow</td>
									<td>int</td>
									<td>否</td>
									<td>总纪录数</td>
								</tr>
								<tr>
									<td>listbegin</td>
									<td>int</td>
									<td>否</td>
									<td>分页起始页码</td>
								</tr>
								<tr>
									<td>listend</td>
									<td>int</td>
									<td>否</td>
									<td>分页结束页码</td>
								</tr>
								<tr>
									<td>param</td>
									<td>PageQueryParam</td>
									<td>否</td>
									<td>查询参数</td>
								</tr>
							</tbody>
						</table>
					</div>
					<p>一个简单的分页示例：</p>
					<pre class="prettyprint lang-xml">&lt;div th:if=&quot;&#36;{page.totalPage &gt; 1}&quot;&gt;
	&lt;ul class=&quot;pagination&quot;&gt;
		&lt;li
			th:each=&quot; i : &#36;{#numbers.sequence(page.listbegin, page.listend-1)}&quot;
			th:class=&quot;&#36;{(i == page.currentPage) ? &#x27;active&#x27; : &#x27;&#x27;}&quot;&gt;&lt;a
			href=&quot;href&quot; th:text=&quot;${i}&quot;&gt;&lt;/a&gt;
	&lt;/ul&gt;
&lt;/div&gt;</pre>

				</div>
			</div>
		</div>
	</div>
</body>

<script type="text/javascript" src="../static/jquery/jquery.min.js"></script>
<script type="text/javascript"
	src="../static/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="../static/prettify/prettify.js"></script>
<script>
	$(function() {
		$("#nav").load("nav.html");
	});
</script>
</html>